package org.smarthings.things.management.rest.resources.actions;

import java.net.URI;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.smarthings.things.commons.rest.BasicIdentifiableResource;


@XmlType(name = "thingAction")
@XmlRootElement(name = "thingAction")
public class ThingActionResource extends BasicIdentifiableResource {

	private String type;
	private URI metadata;
	private URI execute;

	@XmlElement(name = "type", required = true)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@XmlElement(name = "metadata", required = false)
	public URI getMetadata() {
		return metadata;
	}

	public void setMetadata(URI metadata) {
		this.metadata = metadata;
	}

	@XmlElement(name = "execute", required = false)
	public URI getExecute() {
		return execute;
	}

	public void setExecute(URI execute) {
		this.execute = execute;
	}
	
	

}
